-- GENERATED SPELL FOR [Wyrmcult Provisioner] --


function spell0_22099(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(34802,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22099', 6279, 1)
end

function spell1_22099(pUnit, Event) --@Torch,n/a--
pUnit:FullCastSpellOnTarget(35857,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22099', 675, 1)
end

function Sorts_22099(pUnit, Event)
local choix_sorts_22099 = math.random(0, 1)
if choix_sorts_22099 == 0 then
pUnit:RegisterEvent('spell0_22099', 1, 1)
end
if choix_sorts_22099 == 1 then
pUnit:RegisterEvent('spell1_22099', 1, 1)
end
end

function mob22099_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22099', math.random(1500, 3000), 1)
end

function mob22099_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22099_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22099_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22099, 1, 'mob22099_Action')
RegisterUnitEvent(22099, 2, 'mob22099_Leave')
RegisterUnitEvent(22099, 3, 'mob22099_Kill')
RegisterUnitEvent(22099, 4, 'mob22099_Die')
